Here you can learn the nuts and bolts of getting Java running on your Linux.
No, not yet, but expect it any week now.
Look in ftp://java.blackdown.org/pub/Java/linux . The latest Java-for-Linux can be downloaded from there. You should browse the ftp://java.blackdown.org/pub/Java/linux/README first.
The files you'll need are linux.jdk.common.tar.gz and one of either linux.jdk.x86-static-motif-bin.tar.gz ot linux.jdk.x86-shared-motif-bin.tar.gz, depending on whether you have Motif shared libraries on your system.
This port (from the Sun sources by Randy Chapman) is the one that's referred to (as the JDK) elsewhere in this HOWTO.
For starters, you need an ELF-based Linux. There is no a.out support, and at the speed the Linux world is switching over to ELF there is not likely to be any in the future.
You need a 1.2.13 or later kernel. Kernels 1.2.12 and older seem to have a bug in getcwd(3) that tanks bin/javac because it doesn't check the getcwd(3) return code.
You'll need these pieces:
If you don't already have it, get libc.5.2.16.bin.tar.gz from ftp://tsx-11.mit.edu/pub/linux/packages/GCC/ . Uncompress and untar and copy the files in the lib subdirectory of the top level of the hierarchy to /lib.
If you don't have a current version of ld.so (or libdl.so.1.7.*) you will need to update. ld.so.1.7.9 and .11 will work; .10 and other early versions will not. Get ld-so.1.7.11.tar.gz from ftp://ftp.ods.com/linux/ ; Uncompress and untar it and run instldso.sh which is in the top level of the resulting hierarchy.
You can get an Xpm library that will work from ftp://sunsite.unc.edu/pub/Linux/libs/X/libXpm.3.4f-ELF.tar.gz .
Yes, you need Netscape. HotJava isn't yet available for the beta release. Randy Chapman says:
Sun massively changed the awt interface when they shipped the beta JDK and have not yet converted HotJava to it. They have promised they will, and it should work great with linux-jdk when they release it.It's unknown when this will happen.
Netscape versions starting from 2.0b3 is Java-aware.
It is available at ftp
The file to get is /2.0b4/unix/netscape-v20b4-export.i486-unknown-linux.tar.Z.
Note that Netscape 2.0b3 or 4 will run on an a.out system, so it is, in theory, possible to write your java app, give it to someone else to compile (like maybe the BlackStar Public Compiler ), and see the output on your system. If you want more than that, get an ELF system.
Make sure CLASSPATH is not set before running netscape; having it set seems to crash Netscape, and if you follow the directions below it won't need tweaking.
The Linux Netscape port has a few known problems. It doesn't do sound. Only 8-bit displays work; 16bpp displays yield crashes. The 2.0b3 version occasionally yields bus errors when caling the dispose method for frames. While it's pretty robust otherwise, Gamelan's `Impressionism' applet is known to crash it.
Next Chapter, Previous Chapter
Table of contents of this chapter, General table of contents
Top of the document, Beginning of this Chapter